package org.kfive.nova.design.behavior.template;

/**
 * Created by admin on 2017-03-05.
 */
public abstract class AbstractAlgorithm {
    public AbstractAlgorithm(){

    }

    public void algorithm(){
        initAlgorithm();
        stepOne();
        stepTwo();
        endAlgorithm();
    }

    protected abstract void initAlgorithm();

    protected abstract void stepOne();

    protected abstract void stepTwo();

    protected abstract void endAlgorithm();
}
